package demo.demoservice;

import demo.demodao.Demo;
import demo.demodao.DemoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 单朋
 * @Date: create in 10:48 2019/3/13
 */
@Service(value = "demoService")
public class DemoServiceImpl implements DemoService {
    @Autowired
    private DemoRepository demoRepository;
    @Override
    public Demo addOne(Demo demo) {
        return demoRepository.save(demo);
    }
}
